package com.example.demo.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * @author Lucy
 * @create 2024-02-18 16:36
 */
@Data
@Table(name="coupons")
public class Coupons {
    @TableId(value = "coupons_id", type = IdType.AUTO)
    private int couponsId;
    private int advertiserId;
    private String couponsName;
    private int couponsType;
    //优惠券说明
    private String description;
    //使用条件
    private String condition;
    private Double value;
    private Double minimumAmount;
    private String productName;
    private String productImageUrl;
    private String startDate;
    private String endDate;
    private String createdAt;
    private String updatedAt;
    private int state;

}
